package com.ddk.en.mongo.model.repository.param;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * Created by lixiangxiang on 2017/5/24.
 */
@Getter
@Setter
@Document(collection = "o2o_credit_idcard_images")
public class IdcardImage {

    @Id
    private String id;

    /**
     * 身份证正面照片
     */
    private String idcardImageObverseBase64;
    private String idcardImageObverseUrl;

    /**
     * 身份证反面照片
     */
    private String idcardImageReverseBase64;
    private String idcardImageReverseUrl;

    /**
     * 手持身份证照片
     */
    private String holdingIdcardBase64;
    private String holdingIdcardUrl;

    /**
     * 上传时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     *
     */
    @Indexed
    private String idcard;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String address;


    /**
     * 人脸识别分数值
     */
    private double faceCompareScore;

    /**
     *
     */
    @Indexed(unique = true)
    private Long accountId;

}
